<%@ page contentType="text/html; charset=utf-8"%>
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>ERP管理系统</title>
  <link rel="stylesheet" href="/resource/layui/css/layui.css">
</head>
<body>
<div class="layui-layout layui-layout-admin">
  <div class="layui-header">
    <div class="layui-logo">
      <i class="layui-icon layui-icon-set"></i>
      进销存管理系统</div>
    <ul class="layui-nav layui-layout-right">
      <li class="layui-nav-item">
        <a href="javascript:;">
          <img src="xx.png" onerror="javascript:this.src='${ctx}/resource/img/default.jpg';" class="layui-nav-img">
          ${currentUser.realName}
        </a>
      </li>
      <li class="layui-nav-item"><a href="${ctx}/user.do?type=exit">退出登录</a></li>
    </ul>
  </div>

  <div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
      <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
      <ul class="layui-nav layui-nav-tree"  lay-filter="test">
        <li class="layui-nav-item layui-nav-itemed">
          <a class="" href="javascript:;">货物管理</a>
          <dl class="layui-nav-child">
            <dd><a href="${ctx}page.do?page=goodList" target="content">货品存量</a></dd>
            <dd><a href="${ctx}page.do?page=addNewGoods" target="content">添加货品类别</a></dd>
            <dd><a href="${ctx}page.do?page=addSealOrder" target="content">添加销售订单</a></dd>
            <dd><a href="${ctx}page.do?page=addPurchaseOrder" target="content">添加进货订单</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item">
          <a href="javascript:;">订单管理</a>
          <dl class="layui-nav-child">
            <dd><a href="${ctx}page.do?page=salesOrderst" target="content">销售订单</a></dd>
            <dd><a href="${ctx}page.do?page=purchaseOrders" target="content">进货订单</a></dd>
          </dl>
        </li>
<%--        <li class="layui-nav-item"><a href="javascript:;">员工管理</a>--%>
<%--          <dl class="layui-nav-child">--%>
<%--            <dd><a href="${ctx}page.do?page=employeeList" target="content">查看员工信息</a></dd>--%>
<%--            <dd><a href="${ctx}page.do?page=addEmp" target="content">添加员工</a></dd>--%>
<%--          </dl>--%>
<%--        </li>--%>
        <li class="layui-nav-item"><a href="javascript:;">用户管理</a>
          <dl class="layui-nav-child">
            <dd><a href="${ctx}page.do?page=userList" target="content">查看用户列表</a></dd>
            <dd><a href="${ctx}page.do?page=addUser" target="content">添加用户</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item"><a href="">返回主页</a></li>
      </ul>
    </div>
  </div>

  <div class="layui-body">
    <!-- 内容主体区域 -->
    <div style="padding: 15px;width: 100%;height: 100%">
      <iframe name="content" style="width: 100%;height: 100%;border-width: 0" src="/page.do?page=console">

      </iframe>
    </div>
  </div>

  <div class="layui-footer">
    <p style="text-align: center">ERP管理系统</p>
  </div>
</div>

<script src="${ctx}/resource/layui/layui.js"></script>
<script>
  //JavaScript代码区域
  layui.use('element', function(){
    var element = layui.element;
  });
</script>
</body>
</html>